﻿@using Abp.Extensions
@using Abp.Application.Services.Dto
@using KDS.Mes.Web.Models.Common.Modals
@using KDS.Mes.Web.Models.Cartypes

@model CreateOrEditCartypeModalViewModel

@* 初始化头部 *@
@Html.Partial("~/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("EditCartype") + ": " + Model.Cartype.CartypeName) : L("CreateCartype")))

<!--html代码区域-->
<div class="modal-body">
    <form name="cartypeInformationsForm" role="form" novalidate class="form-validation">
        <input type="hidden" name="Id" value="@Model.Cartype.Id" />
        <div>
            <div hidden="hidden">
                @if (Model.IsEditMode)
            {
                    <input type="hidden" name="Id" value="@Model.Cartype.Id" />
                }
            </div>

            <div class="form-group  ">
                <label>@L("CartypeName")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.Cartype.CartypeName.IsNullOrEmpty() ? "" : " edited")" type="text" name="CartypeName" value="@Model.Cartype.CartypeName" required maxlength="20" />
            </div>

            <div class="form-group">
                <label>@L("CartypeCode")   <span class="required"> * </span>	 	</label>
                <input class="maxlength-handler form-control @(Model.Cartype.CartypeCode.IsNullOrEmpty() ? "" : " edited")" type="text" name="CartypeCode" value="@Model.Cartype.CartypeCode" required maxlength="20" />
            </div>
        </div>
    </form>
</div>
@Html.Partial("~/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")